<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 120px;height: 20px;
            border: 1px solid red;
            /* 主要针对英文来说的 */
            /* 单词换行 */
            /* word-break: break-all; */
            /* 默认，不允许拆开显示,除非出现- */
            word-break: keep-all;
        }
    </style>
</head>
<body>
    <div>
        my name is andy
    </div>
</body>
</html>